<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">;(function(){

<span id=''>/**
</span> * @ignore
 * @class
 */
VUI.Class('DialogView',{
<span id='-method-constructor'>	/**
</span>	 * 
	 * @constructor
	 */
	init:function(cmp) {
		this._super(cmp);
	}
	// @override	
	,afterRender:function() {
		this._super();
		this.initEvent();
	}
	,initEvent:function() {
		var that = this;
		this.getWin().find('input,select,button').on('keydown',function(e){
			if(e.keyCode == 13) { // 处理回车
				var onOk = that.opt('onOk');
			 	onOk &amp;&amp; onOk.call(that);
			}
		});
	}
},VUI.WinView);

})();</pre>
</body>
</html>
